package com.dk.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dk.service.RoutService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("routeController")
public class RouteController {

    @Reference   //通过这个注解远程调用dubbo.不是autowaried
    private RoutService routService;

    @RequestMapping("test")
    public String test(){
        return "test";
    }

    @RequestMapping("index")
    public String index(){
        return "index";
    }

    @RequestMapping("unauthorized")
    public String unauthorized(){
        return "unauthorized";
    }
}
